import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class FlowLayoutDemo {
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
		frame.add(new JButton("Buton 1"));
		frame.add(new JButton("Buton 2"));
		frame.add(new JButton("Buton 3"));
		frame.add(new JButton("Buton 4"));
		frame.add(new JButton("Buton 5"));
		frame.add(new JButton("Buton 6"));

		frame.setSize(300, 200);
		frame.setVisible(true);
	}
}
